package com.peter.ai;

import java.io.File;

import com.peter.ai.util.AliyunThread;
import com.peter.ai.util.ZhouzaojiFileUtils;

/**
 * Hello world!
 *
 */
public class AppZhouzaoji {
	public static void main(String[] args) {
		final String txtDir = "E://text2voice/zhouzaoji/txt/";
		final String mp3Dir = "E://text2voice/zhouzaoji/mp3/";
		ZhouzaojiFileUtils.splitFile("E://text2voice/zhouzaoji/咒枣记.txt", "------,", txtDir);
		File dir = new File(txtDir);
		File[] files = dir.listFiles();

		for (int i = 0; i < 10; i++) {
			Thread thread = new AliyunThread(i, files, mp3Dir,0,files.length);
			thread.start();
		}

	}
}
